Encrypted Request
Enterprise can avail Sinch India's WhatsApp business services in encrypted format. Sinch India supports below generic encryption.
- AES encryption with CBC mode (Cipher Block Chaining)
- Algorithm: AES256
- Padding: PKCS5PADDING
Business need to pass request with Header “isEncrypted”: true; for ensuring decryption is done else request will be treated as plain request.
Below fields are supported,
Request Type | Default Encrypted Field |
---|---|
Plain Text | content |
Media | content, caption, mediaPath, mediaUrl |
Media Template | content, mediaUrl, filename, parameters, buttons |
Template | header, body, buttons |
Location | latitude, longitude |
Additional Common Encrypted Fields:
key | Value |
---|---|
content-type | application/json |
User | ******** |
Pass | ******** |
isEncrypted | true/false |